import hashlib

from order_platform import settings


def md5(text):
    obj = hashlib.md5(settings.SECRET_KEY.encode('utf-8'))
    obj.update(text.encode('utf-8'))
    return obj.hexdigest()
